package com.woniuxy.service;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.entity.Role;
import com.woniuxy.entity.RoleMenuDTO;

import java.util.List;

public interface RoleService {
    ResponseEntity findAll(int currentPage, int pageSize);
    ResponseEntity addOne(Role role);
    ResponseEntity updateOne(Role role);
    ResponseEntity deleteOne(int id);
    ResponseEntity findByContext(Role role);
    ResponseEntity checkedRole(int roleId);
    ResponseEntity changeMenus(RoleMenuDTO roleMenuDTO);
    ResponseEntity batchDelete(int[] ids);
    List<String> findByids(String[] ids);
    ResponseEntity findAll();
    ResponseEntity getRoles(int id);
    ResponseEntity updateRoles(int id,String roles);
}
